Documentation > CMS Template API Library > Out > DebugWriteLine(String,Object[])
DebugWriteLine
Writes the formatted string to the debug console. Go to System, Tools, Debug Console to see the messages. They do not work when publishing.
public System.Void DebugWriteLine(String,Object[])
Parameters
| Name | Description | Type | 
|---|---|---|
| formattedString | The format string | System.String | 
| args | the list of arguments for the format string | System.Object[] | 
Code Example
C#
Sample:
            
            <%  // A debug statement somewhere in a template  %>
            <%  Out.DebugWriteLine("Asset label='{0}'  id={1}", tmpAsset.Label, tmpAsset.Id); %>
            
            
              
